package com.annotation;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;

@Aspect
public class PreGreetingAspect {

    @Before("execution(* greetTo(..))")//定义切点和增强类型
    public void beforeGreeting(){//横切逻辑
        System.out.println("How are you!");
    }
}
